package com.iotp.controller.test;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class CommUserController {
    private Logger logger = LoggerFactory.getLogger(CommUserController.class);

    @GetMapping("/page")
    public ModelAndView page(String params){
        logger.info("进入我的页面");
        ModelAndView mv = new ModelAndView();
        mv.addObject("params",params);
        mv.setViewName("test/my_page");
        return mv;
    }


    @GetMapping("/b")
    public void b(){
        int i= 1/0;
    }


}
